package org.apache.jsp.frame;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.util.SessionUtils;
import com.util.CommonTools;
import java.util.*;
import com.dao.PTransDAO;

public final class blank_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=gbk");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	String userType = SessionUtils.getUserType(request);
	String managOrgId = SessionUtils.getManagOrgId(request);
	String year= CommonTools.getCurrentYearAndMonth().substring(0,4);
	String month= CommonTools.getCurrentYearAndMonth().substring(5,7);
	PTransDAO dao = new PTransDAO();
	try{
		List list = dao.Count0501(managOrgId, year, month, year, month, managOrgId, userType);
		List listAll = dao.CountAll(list);

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gbk\" />\r\n");
      out.write("<META http-equiv=Pragma content=no-cache>\r\n");
      out.write("<META http-equiv=Cache-Control content=no-cache>\r\n");
      out.write("<META http-equiv=Expires content=0>\r\n");
      out.write("<link href=\"../style/css/private.css\" type=\"text/css\" rel=\"stylesheet\">\r\n");
      out.write("<script type=\"text/javascript\" src=\"../style/scripts/private.js\"  language=\"JavaScript\"></script>\r\n");
      out.write("<script language=\"javascript1.2\">\r\n");
      out.write("\tfunction myOpen(type,xlh,name){\r\n");
      out.write("\t\tvar url=\"");
      out.print(request.getContextPath());
      out.write("/pages/a05/A0501.do?operationType=\"+type+\"&ORGID=\"+xlh+\"&startyear=");
      out.print(year);
      out.write("&startmonth=");
      out.print(month);
      out.write("&endyear=");
      out.print(year);
      out.write("&endmonth=");
      out.print(month);
      out.write("&ORGNAME=\"+name;\r\n");
      out.write("\t\twindow.open (url, 'newwindow', 'height=600, width=800, top=80, left=150, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no,directories=no,status=no');\r\n");
      out.write("    }\r\n");
      out.write("</script>\r\n");
      out.write("<title>无标题文档</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("body {\r\n");
      out.write("\tmargin-left: 0px;\r\n");
      out.write("\tmargin-top: 0px;\r\n");
      out.write("\tmargin-right: 0px;\r\n");
      out.write("\tmargin-bottom: 0px;\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body marginheight=\"0\" marginwidth=\"0\" bottommargin=\"0\" topmargin=\"0\">\r\n");
      out.write("<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td align=\"center\" valign=\"bottom\"><img src=\"../style/images/blankbg.jpg\" width=\"640\" height=\"420\" /></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td valign=\"top\" class=\"fieldset2\"><div style=\"width:100%; height:178; overflow:auto; \"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" class=\"list_table2\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td width=\"5%\" rowspan=\"2\" align=\"center\"  class=\"list_trb2\">序号</td>\r\n");
      out.write("\t\t\t\t<td width=\"25%\" rowspan=\"2\" align=\"center\" class=\"list_trb2\">机构名称</td>\r\n");
      out.write("\t\t\t\t<td width=\"14%\" rowspan=\"2\" align=\"center\"  class=\"list_trb2\">重要岗位总人数</td>\t\t\t\t\r\n");
      out.write("\t\t\t\t<td colspan=\"2\" align=\"center\" class=\"list_trb2\">岗位交流预警</td>\r\n");
      out.write("\t\t\t\t<td colspan=\"2\" align=\"center\"  class=\"list_trb2\">强制休假预警</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td width=\"14%\" class=\"list_trb2\" align=\"center\">当月应交流人次</td>\r\n");
      out.write("\t\t\t\t<td width=\"14%\" class=\"list_trb2\" align=\"center\">三个月应交流人次</td>\t\t\r\n");
      out.write("\t\t\t\t<td width=\"14%\"  class=\"list_trb2\" align=\"center\">当月应休假人数</td>\r\n");
      out.write("\t\t\t\t<td width=\"14%\"  class=\"list_trb2\" align=\"center\">三个月应休假人数</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t");

			for(int i=0; i<list.size(); i++){
				Map map = (Map) list.get(i);
		
      out.write("\r\n");
      out.write("\t\t\t<tr class=\"tableRow\">\r\n");
      out.write("\t\t\t\t<td class=\"list_rb\" align=\"center\">");
      out.print(i+1);
      out.write("</td>\r\n");
      out.write("\t\t\t\t<td class=\"list_rb\" align=\"left\">");
      out.print((String) map.get("NAME"));
      out.write("&nbsp;</td>\r\n");
      out.write("\t\t\t\t<td class=\"list_rb\" align=\"center\">");
      out.print((String) map.get("COUNT"));
      out.write("&nbsp;</td>\r\n");
      out.write("\t\t\t\t<td class=\"list_rb\" align=\"center\"><a href=\"javascript:myOpen('list1','");
      out.print((String) map.get("ORGID"));
      out.write('\'');
      out.write(',');
      out.write('\'');
      out.print((String) map.get("NAME"));
      out.write("');\">");
      out.print((String) map.get("COUNTLIST1"));
      out.write("</a>&nbsp;</td>\r\n");
      out.write("\t\t\t\t<td class=\"list_rb\" align=\"center\"><a href=\"javascript:myOpen('list7','");
      out.print((String) map.get("ORGID"));
      out.write('\'');
      out.write(',');
      out.write('\'');
      out.print((String) map.get("NAME"));
      out.write("');\">");
      out.print((String) map.get("COUNTLIST12"));
      out.write("</a>&nbsp;</td>\r\n");
      out.write("\t\t\t\t<td class=\"list_rb\" align=\"center\"><a href=\"javascript:myOpen('list3','");
      out.print((String) map.get("ORGID"));
      out.write('\'');
      out.write(',');
      out.write('\'');
      out.print((String) map.get("NAME"));
      out.write("');\">");
      out.print((String) map.get("COUNTLIST5"));
      out.write("</a>&nbsp;</td>\r\n");
      out.write("\t\t\t\t<td class=\"list_rb\" align=\"center\"><a href=\"javascript:myOpen('list8','");
      out.print((String) map.get("ORGID"));
      out.write('\'');
      out.write(',');
      out.write('\'');
      out.print((String) map.get("NAME"));
      out.write("');\">");
      out.print((String) map.get("COUNTLIST13"));
      out.write("</a>&nbsp;</td>\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t");
	}
			for(int i=0; i<listAll.size(); i++){
				Map map = (Map) listAll.get(i);
		
      out.write("\r\n");
      out.write("\t\t\t<tr class=\"tableRow\">\r\n");
      out.write("\t\t\t\t<td colspan=\"2\" align=\"center\" class=\"list_rb\"><strong>合计</strong></td>\r\n");
      out.write("\t\t\t\t<td align=\"center\" class=\"list_rb\"><strong>");
      out.print((String) map.get("countAll"));
      out.write("</strong>&nbsp;</td>\t\t\t\t\r\n");
      out.write("\t\t\t\t<td align=\"center\" class=\"list_rb\"><strong>");
      out.print((String) map.get("countAll1"));
      out.write("</strong>&nbsp;</td>\r\n");
      out.write("\t\t\t\t<td align=\"center\" class=\"list_rb\"><strong>");
      out.print((String) map.get("countAll13"));
      out.write("</strong>&nbsp;</td>\r\n");
      out.write("\t\t\t\t<td align=\"center\" class=\"list_rb\"><strong>");
      out.print((String) map.get("countAll5"));
      out.write("</strong>&nbsp;</td>\r\n");
      out.write("\t\t\t\t<td align=\"center\" class=\"list_rb\"><strong>");
      out.print((String) map.get("countAll14"));
      out.write("</strong>&nbsp;</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t");
	}
      out.write("\r\n");
      out.write("\t\t</table></div></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");

} catch (Exception e) {
	e.printStackTrace();
} finally {
	if (dao != null) dao.disConnect();
}

      out.write('\r');
      out.write('\n');
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
